//
//  String+ToHexStr.swift
//  CLExtension
//
//  Created by CharlieLiao on 2017/8/4.
//  Copyright © 2017年 Charlie. All rights reserved.
//

extension String {
    public var hexStringToData: Data? {
        return (self as NSString).hexStringToData()
    }
}

extension Data {
    public var toHexString: String {
        return (self as NSData).toHexString()
    }
}
